<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--准备好一个容器-->
<div id="root"></div>
<!--引入React核心库-->
<script src="../../javascript/react.development.js"></script>
<!--引入React-dom，用于支持React操作DOM-->
<script src="../../javascript/react-dom.development.js"></script>
<!--引入babel，用于将jsx转换为js-->
<script src="../../javascript/babel.min.js"></script>

<script type="text/babel">
    // 创建一虚拟DOM
    const vdom=<h1>hello-react</h1>
    // 渲染虚拟DOM到指定的容器
    ReactDOM.render(vdom,document.querySelector("#root"))
</script>
</body>
</html>